package PTA2.ti1401;
import java.util.Scanner;
/**
 * @author Lenovo
 */

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n=scanner.nextInt();
        int oddCount=0;
        int evenCount=0;
        for(int i=1;i<=n;i++){
            if(i%3==0){
                if(i%2==0){
                    evenCount++;
                }
                else {
                    oddCount++;
                }
            }
        }
        System.out.println(oddCount+" ,"+evenCount);
        scanner.close();
    }
}